
<div class="row">
	<div class="twelve columns">
		<div class="box_c">
			<div class="box_c_heading cf">
				<div class="box_c_ico"><img src="img/ico/icSw2/16-List.png" alt="" /></div>
				<p>{{Créer/Modifier un compte utilisateur}}</p>
			</div>
			<div class="box_c_content form_a">
				<form action="" method="post" class="nice">
					<?php if(!empty($user['id'])){ ?>
						<input type="hidden" name="id" value="<?php echo (int)$user['id']; ?>" />
					<?php } ?>

					<div class="row sepH_b">
						<div class="two columns">
							<div class="form_legend">
								<h5>Type d'utilisateur</h5>
								<p></p>
							</div>
						</div>
						<div class="ten columns">
							<div class="form_content">
								<div class="formRow">
									<select name="level" class="chzn-select" tabindex="6">
										<?php foreach($levels as $k => $v){ ?>
											<option <?php if(!empty($user['level']) and $user['level'] == $k){ echo 'selected'; }elseif(!empty($_POST['level']) and $_POST['level'] == $k){ echo 'selected'; } ?> value="<?php echo $k; ?>"><?php echo $v; ?></option>
										<?php } ?>
									</select>
								</div>
							</div>
						</div>
					</div>

					<!-- / BLOC I / -->
					<div class="row sepH_b">
						<div class="two columns">
							<div class="form_legend">
								<h5>Civilité</h5>
								<p></p>
							</div>
						</div>
						<div class="ten columns">
							<div class="form_content">
								<div class="formRow">
									<label >{{Civilité}}</label>
									<select name="civility" class="chzn-select" tabindex="6">
										<?php foreach($civilities as $civility){ ?>
											<option <?php if(!empty($user['civility']) and $user['civility'] == $civility){ echo 'selected'; }elseif(!empty($_POST['civility']) and $_POST['civility'] == $civility){ echo 'selected'; } ?> value="<?php echo $civility; ?>"><?php echo $civility; ?></option>
										<?php } ?>
									</select>
								</div>

								<div class="formRow">
									<label class="sepH_b">{{Nom}}</label>
									<input value="<?php if(!empty($user['name'])){ echo $user['name']; }elseif(!empty($_POST['name'])){ echo $_POST['name']; } ?>" style="margin-top:-2px" type="text" name="name" class="input-text small" />
								</div>

								<div class="formRow">
									<label class="sepH_b">{{Prénom}}</label>
									<input value="<?php if(!empty($user['firstname'])){ echo $user['firstname']; }elseif(!empty($_POST['firstname'])){ echo $_POST['firstname']; } ?>" style="margin-top:-2px" type="text" name="firstname" class="input-text small" />
								</div>
							</div>
						</div>
					</div>


					<!-- / BLOC II / -->
					<div class="row sepH_b">
						<div class="two columns">
							<div class="form_legend">
								<h5>Coordonnées</h5>
								<p></p>
							</div>
						</div>
						<div class="ten columns">
							<div class="form_content">
								<div class="formRow">
									<label class="sepH_b">{{Adresse email}}</label>
									<input value="<?php if(!empty($user['email'])){ echo $user['email']; }elseif(!empty($_POST['email'])){ echo $_POST['email']; } ?>" style="margin-top:-2px" type="text" name="email" class="input-text medium" />
								</div>

								<div class="formRow">
									<label class="sepH_b">{{N° de téléphone}}</label>
									<input data-mask="99 99 99 99 99" value="<?php if(!empty($user['phone'])){ echo $user['phone']; }elseif(!empty($_POST['phone'])){ echo $_POST['phone']; } ?>" style="margin-top:-2px" type="text" name="phone" class="input-text small mask" />
								</div>

								<div class="formRow">
									<label class="sepH_b">{{N° de mobile}}</label>
									<input data-mask="99 99 99 99 99" value="<?php if(!empty($user['mobile'])){ echo $user['mobile']; }elseif(!empty($_POST['mobile'])){ echo $_POST['mobile']; } ?>" style="margin-top:-2px" type="text" name="mobile" class="input-text small mask" />
								</div>
							</div>
						</div>
					</div>

					<div class="formRow">
						<button name="save" value="1" type="submit" class="button green small radius nice">{{Ok}}</button>
						<button name="return" value="1" type="submit" class="button white small radius nice">{{Annuler}}</button>
					</div>
					
				</form>
			</div>
		</div>
	</div>
</div>